home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Files / Educ / Health-Food / RDA Info.sit / RDA Info Stack / card_3371.txt < prev    next >
Encoding:
Text File  |  1994-09-03  |  11.1 KB  |  459 lines

  1. -- card: 3371 from stack: in
  2. -- bmap block id: 3897
  3. -- flags: 0000
  4. -- background id: 2782
  5. -- name: 
  6.  
  7.  
  8. -- part 3 (field)
  9. -- low flags: 00
  10. -- high flags: 2002
  11. -- rect: left=180 top=85 right=109 bottom=426
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 0
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: Name
  20.  
  21.  
  22. -- part 4 (field)
  23. -- low flags: 00
  24. -- high flags: 2002
  25. -- rect: left=180 top=126 right=150 bottom=228
  26. -- title width / last selected line: 0
  27. -- icon id / first selected line: 0 / 0
  28. -- text alignment: 65535
  29. -- font id: 0
  30. -- text size: 12
  31. -- style flags: 0
  32. -- line height: 16
  33. -- part name: Age
  34.  
  35.  
  36. -- part 5 (button)
  37. -- low flags: 00
  38. -- high flags: 8006
  39. -- rect: left=332 top=146 right=164 bottom=400
  40. -- title width / last selected line: 0
  41. -- icon id / first selected line: 0 / 0
  42. -- text alignment: 1
  43. -- font id: 0
  44. -- text size: 12
  45. -- style flags: 0
  46. -- line height: 16
  47. -- part name: Male
  48. ----- HyperTalk script -----
  49. on mouseUp
  50.   get the hilite of me
  51.   set the hilite of me to not it
  52.   set the hilite of button "Female" to it
  53.   set the visible of button "Lactating" to it
  54.   set the visible of button "Pregnant" to it
  55. end mouseUp
  56.  
  57.  
  58.  
  59. -- part 6 (button)
  60. -- low flags: 00
  61. -- high flags: 8006
  62. -- rect: left=332 top=167 right=185 bottom=400
  63. -- title width / last selected line: 0
  64. -- icon id / first selected line: 0 / 0
  65. -- text alignment: 1
  66. -- font id: 0
  67. -- text size: 12
  68. -- style flags: 0
  69. -- line height: 16
  70. -- part name: Female
  71. ----- HyperTalk script -----
  72. on mouseUp
  73.   get the hilite of me
  74.   set the hilite of me to not it
  75.   set the hilite of button "Male" to it
  76.   set the visible of button "Lactating" to not it
  77.   set the visible of button "Pregnant" to not it
  78. end mouseUp
  79.  
  80.  
  81.  
  82. -- part 7 (button)
  83. -- low flags: 80
  84. -- high flags: A005
  85. -- rect: left=321 top=197 right=219 bottom=409
  86. -- title width / last selected line: 0
  87. -- icon id / first selected line: 0 / 0
  88. -- text alignment: 1
  89. -- font id: 0
  90. -- text size: 12
  91. -- style flags: 0
  92. -- line height: 16
  93. -- part name: Pregnant
  94. ----- HyperTalk script -----
  95. on mouseUp
  96.   if the hilite of me is true then
  97.     ask "How many months pregnant?"
  98.     if it is empty then
  99.       set the hilite of me to false
  100.       exit mouseUp
  101.     end if
  102.     if (it <= 0) or (it > 9.5) then
  103.       beep
  104.       answer "That doesn't make sense!"
  105.       set the hilite of me to false
  106.       exit mouseUp
  107.     end if
  108.     put it into cd field "monthsPreg"
  109.   else
  110.     put empty into cd field "monthsPreg"
  111.   end if
  112. end mouseUp
  113.  
  114.  
  115.  
  116. -- part 8 (button)
  117. -- low flags: 80
  118. -- high flags: A005
  119. -- rect: left=321 top=225 right=249 bottom=409
  120. -- title width / last selected line: 0
  121. -- icon id / first selected line: 0 / 0
  122. -- text alignment: 1
  123. -- font id: 0
  124. -- text size: 12
  125. -- style flags: 0
  126. -- line height: 16
  127. -- part name: Lactating
  128. ----- HyperTalk script -----
  129. on mouseUp
  130.   if the hilite of me is true then
  131.     ask "Lactating for how many months?"
  132.     if it is empty then
  133.       set the hilite of me to false
  134.       exit mouseUp
  135.     end if
  136.     if (it <= 0) or (it > 50) then
  137.       beep
  138.       answer "That doesn't make sense!"
  139.       set the hilite of me to false
  140.       exit mouseUp
  141.     end if
  142.     put it into cd field "monthsLact"
  143.   else
  144.     put empty into cd field "monthsLact"
  145.   end if
  146. end mouseUp
  147.  
  148.  
  149.  
  150. -- part 9 (field)
  151. -- low flags: 80
  152. -- high flags: 0002
  153. -- rect: left=223 top=182 right=213 bottom=257
  154. -- title width / last selected line: 0
  155. -- icon id / first selected line: 0 / 0
  156. -- text alignment: 0
  157. -- font id: 3
  158. -- text size: 12
  159. -- style flags: 0
  160. -- line height: 16
  161. -- part name: monthsPreg
  162.  
  163.  
  164. -- part 10 (field)
  165. -- low flags: 80
  166. -- high flags: 0002
  167. -- rect: left=212 top=196 right=231 bottom=260
  168. -- title width / last selected line: 0
  169. -- icon id / first selected line: 0 / 0
  170. -- text alignment: 0
  171. -- font id: 3
  172. -- text size: 12
  173. -- style flags: 0
  174. -- line height: 16
  175. -- part name: monthsLact
  176.  
  177.  
  178. -- part 11 (field)
  179. -- low flags: 00
  180. -- high flags: 2002
  181. -- rect: left=180 top=164 right=188 bottom=228
  182. -- title width / last selected line: 0
  183. -- icon id / first selected line: 0 / 0
  184. -- text alignment: 65535
  185. -- font id: 0
  186. -- text size: 12
  187. -- style flags: 0
  188. -- line height: 16
  189. -- part name: Weight
  190.  
  191.  
  192. -- part 12 (button)
  193. -- low flags: 00
  194. -- high flags: A003
  195. -- rect: left=75 top=211 right=234 bottom=185
  196. -- title width / last selected line: 0
  197. -- icon id / first selected line: 0 / 0
  198. -- text alignment: 1
  199. -- font id: 0
  200. -- text size: 12
  201. -- style flags: 0
  202. -- line height: 16
  203. -- part name: Calculate RDA
  204. ----- HyperTalk script -----
  205. on mouseUp
  206.   put line 1 of cd field 5 into weight
  207.   put weight into wt -- Save original value in lbs.
  208.   put line 1 of cd field "Name" into name
  209.   put line 1 of cd field "Age" into age
  210.   put weight/2.21 into weight -- Convert pounds to Kg.
  211.   put cd field 2 into age
  212.   if the hilite of button 1 is true then
  213.     put "Male" into sex
  214.   else
  215.     put "Female" into sex
  216.   end if
  217.   setCalories age,sex,weight
  218.   if age  < 11 then --RDA values independent of sex
  219.     if age  <= 0.5 then
  220.       put line 1 of cd field 8 into dataList
  221.       put round(weight*2.2) into item 1 of dataList
  222.     else if age < 1 then
  223.       put line 2 of cd field 8 into dataList
  224.       put round(weight*2.0) into item 1 of dataList
  225.     else if age < 4 then
  226.       put line 3 of cd field 8 into dataList
  227.     else if age < 7 then
  228.       put line 4 of cd field 8 into dataList
  229.     else
  230.       put line 5 of cd field 8 into dataList
  231.     end if
  232.   else
  233.     if sex is "Male" then
  234.       if age < 15 then
  235.         put line 1 of cd field 6 into dataList
  236.       else if age < 19 then
  237.         put line 2 of cd field 6 into dataList
  238.       else if age < 25 then
  239.         put line 3 of cd field 6 into dataList
  240.       else if age < 51 then
  241.         put line 4 of cd field 6 into dataList
  242.       else
  243.         put line 5 of cd field 6 into dataList
  244.       end if
  245.     else if the hilite of button "Lactating" is true then
  246.       put cd field "monthsLact" into T
  247.       if T <= 6 then
  248.         put line 7 of cd field 7 into dataList
  249.       else
  250.         put line 8 of cd field 7 into dataList
  251.       end if
  252.       put line 2 of cd field 1 of next cd into Cal
  253.       put Cal + 500 into line 2 of cd field 1 of next cd
  254.     else if the hilite of button "Pregnant" is true then
  255.       put cd field "monthsPreg" into T
  256.       put line 2 of cd field 1 of next cd into Cal
  257.       if T > 3 then put Cal + 300 into line 2 of cd field 1 of next cd
  258.       put line 6 of cd field 7 into dataList
  259.     else
  260.       if age < 15 then
  261.         put line 1 of cd field 7 into dataList
  262.       else if age < 19 then
  263.         put line 2 of cd field 7 into dataList
  264.       else if age < 25 then
  265.         put line 3 of cd field 7 into dataList
  266.       else if age < 51 then
  267.         put line 4 of cd field 7 into dataList
  268.       else
  269.         put line 5 of cd field 7 into dataList
  270.       end if
  271.     end if
  272.   end if
  273.   go next
  274.   parseData dataList
  275.   put name into cd field 9
  276.   put age && "Years" into line 2 of cd field 9
  277.   put wt & " Lbs" into line 3 of cd field 9
  278. end mouseUp
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285. -- part 13 (field)
  286. -- low flags: 81
  287. -- high flags: 0007
  288. -- rect: left=42 top=56 right=257 bottom=451
  289. -- title width / last selected line: 0
  290. -- icon id / first selected line: 0 / 0
  291. -- text alignment: 0
  292. -- font id: 3
  293. -- text size: 12
  294. -- style flags: 0
  295. -- line height: 16
  296. -- part name: 
  297.  
  298.  
  299. -- part 14 (field)
  300. -- low flags: 81
  301. -- high flags: 0007
  302. -- rect: left=79 top=84 right=285 bottom=488
  303. -- title width / last selected line: 0
  304. -- icon id / first selected line: 0 / 0
  305. -- text alignment: 0
  306. -- font id: 3
  307. -- text size: 12
  308. -- style flags: 0
  309. -- line height: 16
  310. -- part name: 
  311.  
  312.  
  313. -- part 15 (field)
  314. -- low flags: 81
  315. -- high flags: 0007
  316. -- rect: left=93 top=116 right=317 bottom=502
  317. -- title width / last selected line: 0
  318. -- icon id / first selected line: 0 / 0
  319. -- text alignment: 0
  320. -- font id: 3
  321. -- text size: 12
  322. -- style flags: 0
  323. -- line height: 16
  324. -- part name: 
  325.  
  326.  
  327. -- part 18 (button)
  328. -- low flags: 00
  329. -- high flags: 2000
  330. -- rect: left=25 top=299 right=331 bottom=64
  331. -- title width / last selected line: 0
  332. -- icon id / first selected line: 902 / 902
  333. -- text alignment: 1
  334. -- font id: 0
  335. -- text size: 12
  336. -- style flags: 0
  337. -- line height: 16
  338. -- part name: Next
  339. ----- HyperTalk script -----
  340. on mouseUp
  341.   visual effect wipe right
  342.   go prev
  343. end mouseUp
  344.  
  345.  
  346.  
  347. -- part 20 (button)
  348. -- low flags: 00
  349. -- high flags: 2000
  350. -- rect: left=444 top=299 right=331 bottom=483
  351. -- title width / last selected line: 0
  352. -- icon id / first selected line: 26425 / 26425
  353. -- text alignment: 1
  354. -- font id: 0
  355. -- text size: 12
  356. -- style flags: 0
  357. -- line height: 16
  358. -- part name: Next
  359. ----- HyperTalk script -----
  360. on mouseUp
  361.   visual effect wipe left
  362.   go cd id 4764
  363. end mouseUp
  364.  
  365.  
  366.  
  367. -- part 21 (field)
  368. -- low flags: 01
  369. -- high flags: 2002
  370. -- rect: left=76 top=85 right=109 bottom=174
  371. -- title width / last selected line: 0
  372. -- icon id / first selected line: 0 / 0
  373. -- text alignment: 65535
  374. -- font id: 0
  375. -- text size: 12
  376. -- style flags: 0
  377. -- line height: 16
  378. -- part name: 
  379.  
  380.  
  381. -- part 22 (field)
  382. -- low flags: 01
  383. -- high flags: 2002
  384. -- rect: left=76 top=126 right=150 bottom=174
  385. -- title width / last selected line: 0
  386. -- icon id / first selected line: 0 / 0
  387. -- text alignment: 65535
  388. -- font id: 0
  389. -- text size: 12
  390. -- style flags: 0
  391. -- line height: 16
  392. -- part name: 
  393.  
  394.  
  395. -- part 23 (field)
  396. -- low flags: 01
  397. -- high flags: 2002
  398. -- rect: left=77 top=164 right=188 bottom=175
  399. -- title width / last selected line: 0
  400. -- icon id / first selected line: 0 / 0
  401. -- text alignment: 65535
  402. -- font id: 0
  403. -- text size: 12
  404. -- style flags: 0
  405. -- line height: 16
  406. -- part name: 
  407.  
  408.  
  409. -- part contents for background part 1
  410. ----- text -----
  411. Data Entry
  412.  
  413. -- part contents for card part 13
  414. ----- text -----
  415. 45,1200,12,270,1200,2000,500,15,"1.5-2.5*","2.0-5.0*",1000,50,1.3,1.5,17,1.7,150,2
  416. 59,1200,12,400,1200,2000,500,15,"1.5-2.5*","2.0-5.0*",1000,60,1.5,1.8,20,2,200,2
  417. 58,1200,10,350,1200,2000,500,15,"1.5-2.5*","2.0-5.0*",1000,60,1.5,1.7,19,2,200,2
  418. 63,800,10,350,800,2000,500,15,"1.5-3*","2.0-5.0*",1000,60,1.5,1.7,19,2,200,2
  419. 63,800,10,350,800,2000,500,15,"1.5-3*","2.0-5.0*",1000,60,1.2,1.4,15,2,200,2
  420.  
  421.  
  422.  
  423. -- part contents for card part 14
  424. ----- text -----
  425. 46,1200,15,280,1200,2000,500,12,"1.5-2.5*","2.0-5.0*",800,50,1.1,1.3,15,1.4,150,2
  426. 44,1200,15,300,1200,2000,500,12,"1.5-2.5*","2.0-5.0*",800,60,1.1,1.3,15,1.5,180,2
  427. 46,1200,15,280,1200,2000,500,12,"1.5-2.5*","2.0-5.0*",800,60,1.1,1.3,15,1.6,180,2
  428. 50,800,15,280,800,2000,500,12,"1.5-3.0*","2.0-5.0*",800,60,1.1,1.3,15,1.6,180,2
  429. 50,800,10,280,800,2000,500,12,"1.5-3.0*","2.0-5.0*",800,60,1.0,1.2,13,1.6,180,2
  430. 60,1200,30,320,1200,2000,500,15,"1.5-3.0*","2.0-5.0*",800,70,1.5,1.6,17,2.2,400,2.2
  431. 65,1200,15,355,1200,2000,500,19,"1.5-3.0*","2.0-5.0*",1300,95,1.6,1.8,20,2.1,280,2.6
  432. 62,1200,15,340,1200,2000,500,16,"1.5-3.0*","2.0-5.0*",1200,90,1.6,1.7,20,2.1,260,2.6
  433.  
  434.  
  435.  
  436.  
  437. -- part contents for card part 15
  438. ----- text -----
  439. 13,400,6,40,300,500,120,5,"0.4-0.6*","0.3-0.6*",375,30,0.3,0.4,5,0.3,25,0.3
  440. 14,600,10,60,500,700,200,5,"0.6-0.7*","0.6-1.0*",375,35,0.4,0.5,6,0.6,35,0.5
  441. 16,800,10,80,800,1000,225,10,"0.7-1.0*","1.0-1.5*",400,40,0.7,0.8,9,1.0,50,0.7
  442. 24,800,10,120,800,1400,300,10,"1.0-1.5*","1.5-2.0*",500,45,0.9,1.1,12,1.1,75,1.0
  443. 28,800,10,170,800,1600,400,10,"1.0-2.0*","2.0-3.0*",700,45,1.0,1.2,13,1.4,100,1.4
  444.  
  445.  
  446.  
  447.  
  448.  
  449. -- part contents for card part 21
  450. ----- text -----
  451. Name:
  452.  
  453. -- part contents for card part 22
  454. ----- text -----
  455. Age (yrs):
  456.  
  457. -- part contents for card part 23
  458. ----- text -----
  459. Weight (lbs):